const user_key = 'user'
export const getUser = () =>
    JSON.parse(window.localStorage.getItem(user_key))

export const setUser = (data) => {
    window.localStorage.setItem(user_key, JSON.stringify(data))
}

export const removeUser = () =>
    window.localStorage.removeItem(user_key)